//
//  YygHomeViewController.m
//  ShangChengMoBan
//
//  Created by 军 on 16/8/27.
//  Copyright © 2016年 ping. All rights reserved.
//一元购中将参与主界面

#import "YygHomeViewController.h"
#import "YSContainerViewController.h"
#import "YygZhongViewController.h"
#import "YygCanViewController.h"
@interface YygHomeViewController ()

@end

@implementation YygHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    YygCanViewController * can =[[YygCanViewController alloc]init];
    can.title =@"参与记录";
    YygZhongViewController * zhong = [[YygZhongViewController alloc]init];
    zhong.title = @"中奖记录";
    YSContainerViewController * ysl = [[YSContainerViewController alloc]initWithControllers:@[can,zhong] topBarHeight:64 parentViewController:self];

    ysl.menuIndicatorColor = [UIColor colorWithHue:0.96 saturation:1.00 brightness:1.00 alpha:1.00];
    [self.view addSubview:ysl.view];
    [self drawNavWithTitle:@"我的一元购" WithColor:[UIColor colorWithHue:0.96 saturation:1.00 brightness:1.00 alpha:1.00]];
    [self drawBackButton];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
